<template>
  <el-container>
    <el-aside width="200px">
      <h1>Aside-logo</h1>

      <h5>自定义颜色</h5>
      <el-menu
        router
        default-active="/"
        class="el-menu-vertical-demo"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b">
        
        <el-menu-item index="/">
          <i class="el-icon-menu"></i>
          <span slot="title">表格</span>
        </el-menu-item>

        <el-menu-item index="/tree">
          <i class="el-icon-menu"></i>
          <span slot="title">tree</span>
        </el-menu-item>

        <el-menu-item index="/form">
          <i class="el-icon-menu"></i>
          <span slot="title">表单</span>
        </el-menu-item>
        
      </el-menu>
      
    </el-aside>
    <el-container>
      <el-header>Header</el-header>
      <el-main>
        <!-- Main -->
        <!-- 路由出口 -->
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<style>
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
</style>